<?php
if(!defined('BR'))
	define('BR', "\r\n");


error_reporting(E_ALL);


//chcp 65001
//exec("chcp 65001");

//读取配置
$cfgFile='./tool/git-cmd.ini';
$gitcmd='';

if((@$gitcmd = trim(file_get_contents($cfgFile))) == '')
{
	echo '未配置git，无法继续...'.BR;
	exit(0);
}

exec("start cmd /c \"{$gitcmd}git status  & pause & {$gitcmd}git add . & pause & {$gitcmd}git commit & pause & {$gitcmd}git push origin master & pause\"");

?>